<h2 class="title">Edit Customer</h2>
<div class="margin">
<?php flash(); //display flash data ?>

<?php echo form_open('admin/edit_customer/'.$user->id); ?>

<div class="input-block"><?php f_input('username', $user->username);?></div>
<div class="input-block"><?php f_input('firstname', $user->firstname); ?></div>
<div class="input-block"><?php f_input('lastname', $user->lastname); ?></div>
<div class="input-block"><?php f_input('contact', $user->contact); ?></div>
<div class="input-block"><?php f_input('email', $user->email); ?></div>
<?php echo form_submit(array('name' => 'save', 'value' => 'Save', 'class' => 'fbtn add'));?>

<?php echo form_close();?>

<a href="<?php echo site_url('admin/customers/')?>" class="back-btn"><span>Back</span></a>
</div>